package 策略模式.impl;

import 策略模式.Strategy;

/**
 *
 */
public class Context {

    private Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public int operate(int x, int y) {
        return strategy.operate(x, y);
    }

}
